<?php
/**
 * *****************************
 * 宁夏博达职业培训学校
 * create by ZhangChenjun
 * 2020.04.10
 * *****************************
 */

use think\Route;

/******************************后台路由********************************************/

Route::rule('error','not_found/index/index');//500系统错误
Route::rule('not_rule','not_rule/index/index');//500系统错误

Route::rule('admin_login','admin/login/index');//后台登录
Route::rule('admin_logout','admin/index/logout');//后台退出

Route::rule('admin','admin/index/index');//后台主页
Route::rule('index_v1','admin/index/index_v1');//后台主页

//Auth权限认证
Route::rule('auth_rule','admin/menu/rule_index');
Route::rule('auth_rule_add','admin/menu/rule_index_add');
Route::rule('auth_rule_edit','admin/menu/rule_index_edit');
Route::rule('auth_rule_del','admin/menu/rule_index_del');

Route::rule('auth_group','admin/menu/group_index');
Route::rule('auth_group_add','admin/menu/group_index_add');
Route::rule('auth_group_edit','admin/menu/group_index_edit');
Route::rule('auth_group_del','admin/menu/group_index_del');


Route::rule('auth_group_access','admin/menu/access_index');
Route::rule('auth_group_access_add','admin/menu/access_index_add');
Route::rule('auth_group_access_edit','admin/menu/access_index_edit');
Route::rule('auth_group_access_del','admin/menu/access_index_del');

//系统配置
Route::rule('system_index','admin/system/index');
Route::rule('system_tips','admin/system/tips');
Route::rule('site_map','admin/sitemap/index');
Route::rule('site_map_add','admin/sitemap/add');
Route::rule('site_map_edit','admin/sitemap/edit');
Route::rule('site_map_del','admin/sitemap/del');

//小区概况
Route::rule('member_type','admin/member/member_type');
Route::rule('member_type_edit','admin/member/member_type_edit');
Route::rule('member_type_del','admin/member/member_type_del');
Route::rule('member_type_add','admin/member/member_type_add');

Route::rule('member_index','admin/member/member_index');
Route::rule('member_index_edit','admin/member/member_index_edit');
Route::rule('member_index_del','admin/member/member_index_del');
Route::rule('member_index_add','admin/member/member_index_add');

Route::rule('member_home','admin/member/member_home');
Route::rule('member_home_edit','admin/member/member_home_edit');
Route::rule('member_home_del','admin/member/member_home_del');
Route::rule('member_home_add','admin/member/member_home_add');

//业主中心
Route::rule('home_index','admin/home/home_index');
Route::rule('home_index_add','admin/home/home_index_add');
Route::rule('home_index_edit','admin/home/home_index_edit');
Route::rule('home_index_del','admin/home/home_index_del');

//汽车中心
Route::rule('car_list','admin/car/car_list');
Route::rule('car_list_add','admin/car/car_list_add');
Route::rule('car_list_edit','admin/car/car_list_edit');
Route::rule('car_list_del','admin/car/car_list_del');

//前台配置
Route::rule('top_menu','admin/top/top_menu');
Route::rule('top_menu_add','admin/top/top_menu_add');
Route::rule('top_menu_edit','admin/top/top_menu_edit');
Route::rule('top_menu_del','admin/top/top_menu_del');

Route::rule('top_logo','admin/top/top_logo');

Route::rule('top_banner','admin/top/top_banner');
Route::rule('top_banner_add','admin/top/top_banner_add');
Route::rule('top_banner_edit','admin/top/top_banner_edit');
Route::rule('top_banner_del','admin/top/top_banner_del');

//个人中心
Route::rule('change_password','admin/person/change_password');
Route::rule('about_person','admin/person/about_person');


//通知与公告
Route::rule('notice','admin/notice/index');
Route::rule('notice_add','admin/notice/add');
Route::rule('notice_edit','admin/notice/edit');
Route::rule('notice_del','admin/notice/del');

//学校概况
Route::rule('about_school','admin/school/index');

/******************************前台路由********************************************/

Route::rule('/','index/index/index');

Route::rule('register','index/user/register');
Route::rule('login','index/user/login');
Route::rule('logout','index/user/logout');
Route::rule('person','index/user/index');

Route::rule('index_change_password','index/user/change_password');

Route::rule('about_us','index/about/index');

Route::rule('index_car_upload','index/car/upload');

Route::rule('index_car_list','index/car/car_list');
Route::rule('index_car_del','index/car/del_car');


Route::rule('index_notice','index/notice/index');

Route::rule('forbidden','weixin/index/index');